<?php defined('SYSPATH') or die('No direct script access.');

class Lib_Blog {

	public static function findAll() {
		return ORM::factory('blog')->find_all();
	}

	public static function findOne($id) {
		return ORM::factory('blog', $id);
	}

	public static function findBySlug($slug) {
		return ORM::factory('blog')->where('slug', '=', $slug)->find();
	}
}
?>
